﻿<Application x:Class="QuickTasks.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
     xmlns:m="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
     xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator"
     xmlns:my="clr-namespace:System;assembly=mscorlib">


    <!--Application Resources-->
    <Application.Resources>
       

        <m:ApplicationIdCredentialsProvider ApplicationId= "AmivBwP5dxW9Uih0JzRpHA_Sln8fHpHw7WB5TOkK9RCXOECJWZAXYU1U8UQ47fUr" x:Key="MyCredentials" />
        <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="0,12,0,12"/>
        </Style>

        <Style x:Key="FeedbackMenuItemText" TargetType="TextBlock">
           
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
            <Setter Property="Height" Value="70"/>
        </Style>
        <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"></Setter>
                <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
            <Setter Property="Height" Value="70"/>
        </Style>
        <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
            <Setter Property="Canvas.Left" Value="3" />
            <Setter Property="Canvas.Top" Value="5" />
            <Setter Property="Width" Value="60" />
            <Setter Property="Height" Value="60" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Fill" Value="#6e4102" />
            <Setter Property="Stroke" Value="White" />
            <Setter Property="StrokeThickness" Value="3" />
            <Setter Property="IsHitTestVisible" Value="False" />
        </Style>
        <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
         
            <Setter Property="FontSize" Value="28"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Width" Value="30"/>
            <Setter Property="Height" Value="44"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
           <Setter Property="Margin" Value="16,-10,0,0"/>
        </Style>
        <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                        <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                            <Grid>
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                                <Grid Height="80" Width="480" Background="Black" VerticalAlignment="Bottom" HorizontalAlignment="Center">
                                    <AdRotator:AdRotatorControl x:Name="AdRotatorWin8" Background="Black"
                                        AdHeight="80"
                                        AdWidth="480"
                                        VerticalAlignment="Bottom"  
                                        HorizontalAlignment="Center"
                                        DefaultSettingsFileUri="/QuickTasks;component/defaultAdSettings.xml"
                                        SettingsUrl="http://lartsoft.org/wp7ads/QuickTasksdefaultAdSettings.xml"                
                                        />
                                </Grid>

                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
           
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Organic_Elements.TTF#Organic Elements"/>
        </Style>
        <!--<my:String x:Key="AdVisible">False</my:String>-->
        <Style x:Key="FormElementLabel" TargetType="TextBlock">
          
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Calibri"/>
        </Style>
        <my:String x:Key="misuid">81656</my:String>
        <my:String x:Key="misappid">f3b2b690-36e9-4e7a-9784-f9c2c40ec6cf</my:String>
        <ResourceDictionary x:Name="dd">
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/DarkStyles.xaml">
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
    

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>